// src/types/models.ts
export interface Content {
  id: number;
  filename: string;
  filePath: string;
  contentType: 'video' | 'image';
  title?: string;
  description?: string;
  durationSeconds?: number;
  width?: number;
  height?: number;
  fileSizeBytes?: number;
  createdAt: string;
  updatedAt: string;
  rating?: number;
  isFavorite?: boolean;
  tags?: Tag[];
  isLoading?: boolean;  // 新增属性，用于加载状态
}

export interface Tag {
  id: number;
  name: string;
}

export interface Rating {
  id: number;
  contentId: number;
  rating: number;
  createdAt: string;
}